// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * ProductSetDetail
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "product_set_detail", autoResultMap = true)
@Schema(title = "产品生命周期设置详情")
public class ProductSetDetail implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 产品编号
   */
  @TableField(value = "`product_id`")
  @JoinField(Product.class)
  @Schema(title = "产品编号")
  private Long productId;

  /**
   * sku
   */
  @TableField(value = "`sku`")
  @Schema(title = "sku")
  private String sku;

  /**
   * 产品分类
   */
  @TableField(value = "`classify`")
  @JoinField(Classify.class)
  @Schema(title = "产品分类")
  private Long classify;

  /**
   * 店铺
   */
  @TableField(value = "`shop_info`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shopInfo;

  /**
   * 标签
   */
  @TableField(value = "`life_tag`")
  @Schema(title = "标签")
  private String lifeTag;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 商品首单时间
   */
  @TableField(value = "`firstorderdate`")
  @Schema(title = "商品首单时间")
  private String firstorderdate;

  /**
   * 商品首单天数
   */
  @TableField(value = "`firstorderday`")
  @Schema(title = "商品首单天数")
  private String firstorderday;

  /**
   * 总销量
   */
  @TableField(value = "`sumquantityordered`")
  @Schema(title = "总销量")
  private String sumquantityordered;

  /**
   * 销售金额
   */
  @TableField(value = "`ordertotalamount`")
  @Schema(title = "销售金额")
  private String ordertotalamount;

  /**
   * 月平均销量
   */
  @TableField(value = "`avgquantityordered`")
  @Schema(title = "月平均销量")
  private String avgquantityordered;

  /**
   * 本地库存数量
   */
  @TableField(value = "`stockqty`")
  @Schema(title = "本地库存数量")
  private String stockqty;

  /**
   * fba库存数量
   */
  @TableField(value = "`fbastockqty`")
  @Schema(title = "fba库存数量")
  private String fbastockqty;
}
